added a section about GtkArgGetFunc and GtkArgSetFunc
authorTim Janik <timj@src.gnome.org>
Sun, 17 Jan 1999 23:54:22 +0000 (23:54 +0000)
committerTim Janik <timj@src.gnome.org>
Sun, 17 Jan 1999 23:54:22 +0000 (23:54 +0000)
docs/Changes-1.2.txt

index 40313e6d7a35da29906af565b49125b4a8f73103..c5a3f8422bba93242ae3c919226263ccbfc31ad0 100644 (file)
@@ -6,6 +6,35 @@ Incompatible Changes from GTK+-1.0 to GTK+-1.2:
   a version of GtkMenuFactory is currently still provided to ease
   the migration phase.
 
+* The GtkTypeInfo structures used in the gtk_*_type_init() functions has
+  changed a bit, the old format:  
+      GtkTypeInfo bin_info =
+      {
+        "GtkBin",
+        sizeof (GtkBin),
+        sizeof (GtkBinClass),
+        (GtkClassInitFunc) gtk_bin_class_init,
+        (GtkObjectInitFunc) gtk_bin_init,
+        (GtkArgSetFunc) NULL,
+        (GtkArgGetFunc) NULL,
+      };
+  needs to be converted to:
+      static const GtkTypeInfo bin_info =
+      {
+        "GtkBin",
+        sizeof (GtkBin),
+        sizeof (GtkBinClass),
+        (GtkClassInitFunc) gtk_bin_class_init,
+        (GtkObjectInitFunc) gtk_bin_init,
+        /* reserved_1 */ NULL,
+        /* reserved_2 */ NULL,
+        (GtkClassInitFunc) NULL,
+      };
+  the GtkArgSetFunc and GtkArgGetFunc functions are not supported from the
+  type system anymore, and you should make sure that your code only fills
+  in these fields with NULL and doesn't use the deprecated function typedefs
+  (GtkArgSetFunc) and (GtkArgGetFunc) anymore.
+
 * A number of Gtk functions got renamed. For compatibility, function
   name aliases covering the old 1.0.x function names are defined in
   gtkcompat.h. To asure your Gtk program doesn't rely on outdated function